package backs.game;

import backs.JSONChater.MyJSONSend;
import backs.bean.Message;

import java.util.ArrayList;
import java.util.List;

public class GamePlayer
{
    public String name;
    public int id;
    public GameTeam team;
    List<GameMessage> groupMessageList=new ArrayList<>();
    List<GameMessage> privateMessageList=new ArrayList<>();
    public GamePlayer(int id, String name, GameTeam team)
    {
        this.id=id;
        this.name=name;
        this.team=team;
    }

    public void sendMessage(String message)
    {
        MyJSONSend.sendPrivateMessage(id,message);
    }
}
